package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.enumclass.MallAuditCertifyInfoStatusType;
import com.rockcent.mall.lib.domain.enumclass.SysConfigType;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * 系统配置表
 * Created by zhangjh on 17/03/08.
 */
@Entity
@Table(name = "sys_config")
@DynamicInsert
@DynamicUpdate
public class SysConfig extends IDEntityMall {
    /**
     * 键
     */
    @Column(columnDefinition = "varchar(30)  comment '键'")
    private String cfgKey;
    /**
     * 值
     */
    @Column(columnDefinition = "varchar(30)  comment '值'")
    private String cfgValue;

    /**
     * 备注
     */
    @Column(columnDefinition = "varchar(30)  comment '配置类别'")
    @Enumerated(EnumType.STRING)
    private SysConfigType cfgType;

    /**
     * 备注
     */
    @Column(columnDefinition = "varchar(30)  comment '备注'")
    private String remark;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCfgKey() {
        return cfgKey;
    }

    public void setCfgKey(String cfgKey) {
        this.cfgKey = cfgKey;
    }

    public String getCfgValue() {
        return cfgValue;
    }

    public void setCfgValue(String cfgValue) {
        this.cfgValue = cfgValue;
    }

    public SysConfigType getCfgType() {
        return cfgType;
    }

    public void setCfgType(SysConfigType cfgType) {
        this.cfgType = cfgType;
    }

    @Override
    public String toString() {
        return "SysConfig{" +
                "id=" + id +
                ", cfgKey='" + cfgKey + '\'' +
                ", dateCreated=" + dateCreated +
                ", cfgValue='" + cfgValue + '\'' +
                ", lastUpdated=" + lastUpdated +
                ", cfgType=" + cfgType +
                ", isDelete=" + isDelete +
                ", remark='" + remark + '\'' +
                ", version=" + version +
                '}';
    }
}
